package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class CaseInfo extends BaseDomain{
    public static final Integer NOT_EXIST = 0;   //没有该保单
    public static final Integer FINISH = 1; //已理赔
    public static final Integer TOO_LONG = 2;  //保单失效
    public static final Integer UNVERITY = 3; //待验证
    public static final Integer VERITY = 4;   //验证完,待填理赔
    public static final Integer UNAUDIT = 5;  //待审核
    public static final Integer REJECT_AUDIT = 6;  //拒审
    public static final Integer NOT_PAY = 7;  //审核完,待付款
    public static final Integer CRASH = 8;  //废弃单

    private Integer status;  // 案件状态

    private String reporter;    // 报案人姓名

    private Boolean gender; // 报案人性别 true 男的

    private String tel; // 报案人电话

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date caseTime;  // 案发时间

    private String caseSpot;    // 案发地点

    private Long insureInfoId;  // 保单id

    private String insureInfoSn;    // 保单编号

    private Long carId; // 车辆id

    private String carNum;  // 车牌号码

    private Employee inputUser; // 录入员工

    private Employee identifier;   // 案件鉴定员工

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date identifierTime;    // 案件鉴定时间

    private Employee payUser;   //  填写赔损单员工

    private Employee crashUser; // 废弃单 员工

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date crashTime; // 废弃日期

    private Employee auditUser; // 审核人

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date auditTime; // 审核日期

    private Employee payMoneyUser;   //  填写付款员工

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date payMoneyTime;   //  填写付款

    private String accidentDescription; // 案情描述

    private String accidentResponsibility;  // 事故责任

    private String remarks; // 备注

    private CompensationInfo compensationInfo;  // 赔损单  one 2 one

}